home *** CD-ROM | disk | FTP | other *** search
/ Motor Sport Digital Archive Collection 1960s / Motor Sport Digital Archive Collection 1960s.iso / main.swf / scripts / _PanelStyle.as < prev    next >
Encoding:
Text File  |  2008-05-21  |  2.1 KB  |  64 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.core.mx_internal;
  5.    import mx.skins.halo.TitleBackground;
  6.    import mx.styles.CSSStyleDeclaration;
  7.    import mx.styles.StyleManager;
  8.    
  9.    public class _PanelStyle
  10.    {
  11.       public function _PanelStyle()
  12.       {
  13.          super();
  14.       }
  15.       
  16.       public static function init(param1:IFlexModuleFactory) : void
  17.       {
  18.          var style:CSSStyleDeclaration = null;
  19.          var effects:Array = null;
  20.          var fbs:IFlexModuleFactory = param1;
  21.          style = StyleManager.getStyleDeclaration("Panel");
  22.          if(!style)
  23.          {
  24.             style = new CSSStyleDeclaration();
  25.             StyleManager.setStyleDeclaration("Panel",style,false);
  26.             effects = style.mx_internal::effects;
  27.             if(!effects)
  28.             {
  29.                effects = style.mx_internal::effects = new Array();
  30.             }
  31.             effects.push("resizeEndEffect");
  32.             effects.push("resizeStartEffect");
  33.          }
  34.          if(style.defaultFactory == null)
  35.          {
  36.             style.defaultFactory = function():void
  37.             {
  38.                this.borderColor = 14869218;
  39.                this.paddingLeft = 0;
  40.                this.roundedBottomCorners = false;
  41.                this.dropShadowEnabled = true;
  42.                this.resizeStartEffect = "Dissolve";
  43.                this.statusStyleName = "windowStatus";
  44.                this.borderAlpha = 0.4;
  45.                this.borderStyle = "default";
  46.                this.paddingBottom = 0;
  47.                this.resizeEndEffect = "Dissolve";
  48.                this.paddingTop = 0;
  49.                this.borderThicknessRight = 10;
  50.                this.titleStyleName = "windowStyles";
  51.                this.cornerRadius = 4;
  52.                this.paddingRight = 0;
  53.                this.borderThicknessLeft = 10;
  54.                this.titleBackgroundSkin = TitleBackground;
  55.                this.borderThickness = 0;
  56.                this.borderThicknessTop = 2;
  57.                this.backgroundColor = 16777215;
  58.             };
  59.          }
  60.       }
  61.    }
  62. }
  63.  
  64.